import { BroadCastCall } from "../../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../../Framework/MQ/MessageBlock";
import { Cache } from "../../../cache/Cache";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { DataEvent } from "../../../events/DataEvent";
import { EventName } from "../../../mvc/EventName";
//class FahunGuideCommand
    
    export  class FahunGuideCommand extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            Cache.instance.fahun.isGuiding = true;
            Dispatcher.dispatchEvent(new DataEvent(EventName.AutoGuideActiveByEvent, {"mainId": 11, "stepId": 1}));
            return;
        }
    }
